package hw;

public class Vehicle {
	//属性
	private String vehicleName;
	private double vehicleSpeed;
	
	
	public Vehicle(String vehicleName, double vehicleSpeed) {
		super();
		this.vehicleName = vehicleName;
		this.vehicleSpeed = vehicleSpeed;
	}


	//行为
	public void move() {
		System.out.println(this.vehicleName+"is moving at speed of"+this.vehicleSpeed);
	}


	public String getVehicleName() {
		return vehicleName;
	}


	public void setVehicleName(String vehicleName) {
		this.vehicleName = vehicleName;
	}


	public double getVehicleSpeed() {
		return vehicleSpeed;
	}


	public void setVehicleSpeed(double vehicleSpeed) {
		this.vehicleSpeed = vehicleSpeed;
	}
	
	


}
